import { createCommonPage } from '@/utils/service.js'

export const createForm = (orderField) => ({
  desc: true, // 是否降序排序,默认false
  orderField: orderField == undefined ? 'createTime' : orderField, // 排序字段
  keyword: '',
  source: '',
  state: '', // 状态
  type: '', // 指令类型
  startTime: '',
  endTime: '',
  timeType: '', // 时间类型:全部,今天,昨天,本周,本月,本季,本年,近n天,近n周,近n月,近n季,近半年,自定义
  ...createCommonPage(),
})